package com.mxpio.erp.common.enums;

public interface InspectionEnums {

	enum ISBusiType {//ERP_QUAL_IS_BUSI_TYPE
		Stock("1", "入库质检"), Process("2", "制程质检");

		ISBusiType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		private String code;

		private String name;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	enum CheckStatus {//ERP_QUAL_CHECK_STATUS
		PLAN("1", "计划"), CHECKING("2", "检验中"), FINISH("3", "完成");

		CheckStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		private String code;

		private String name;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	enum OriginBizType {//ERP_QUAL_ORIGIN_BIZ_TYPE
		PURCH("1", "采购验收"), MANF("2", "生产验收"), OUTS("3", "委外验收"),INVENTORY("4", "库存质检验收"),SALERE("5", "销售退货入库验收");

		OriginBizType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		private String code;

		private String name;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	enum ApplyOrgType {//ERP_QUAL_APPLY_ORG_TYPE
		SUPPLY("1", "供应商"), PROC("3", "加工商"), WORKSHOP("2", "车间"), DEPT("4", "部门"), CUSTOMER("5", "客户");

		ApplyOrgType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		private String code;

		private String name;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	enum LotStatusBitIndex {//index 范围15-0，对应16位二进制从左到右索引位置
		IB15(15, "质检单"),IB14(14, "不良品退料"),IB13(13, "借用");;

		LotStatusBitIndex(Integer index, String desc) {
			this.index = index;
			this.desc = desc;
		}

		private Integer index;

		private String desc;

		public Integer getIndex() {
			return index;
		}

		public void setIndex(Integer index) {
			this.index = index;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
	}


	enum UsageDecision {//ERP_QUAL_SUBLOT_USAGE_DECISION 使用决策
		REC("1", "让步接收"), REJ("2", "判退"), REW("3", "返工"), REF("4", "返修"), SCR("5", "报废");

		UsageDecision(String code, String name) {
			this.code = code;
			this.name = name;
		}

		private String code;

		private String name;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
}
